import Http from "@/libs/Http";

export function saveProdDetail(params) {//发布电站出售
    // if(params.id!=''){//id不为空，即该电站是二次编辑，调编辑修改接口
    //     return Http.post('/quanying-service-provider-system/product/ProductController/updateProdDetail1.action', params);
    // }else{//id不存在，首次发布
    //     return Http.post('/quanying-service-provider-system/product/ProductController/saveProdDetail1.action', params);
    // }
    if(params.id!=''){//id不为空，即该电站是二次编辑，调编辑修改接口
        return Http.post('/quanying-service-provider-system/product/ProductController/updateProdDetail1.action', params);
    }else{//id不存在，首次发布 业务员发布
        return Http.post('/quanying-service-provider-system/product/ProductController/saveProdDetail.action', params);
    }
}


export function delProdDetail(params) {//删除电站
    return Http.post('/quanying-service-provider-system/product/ProductController/delProdDetail.action', params);
}

export function getBuyInfo(params) {//查询电站求购详情
    return Http.post('/quanying-service-provider-system/product/ProductController/getBuyInfo.action', params);
}
